package com.youlai.boot.modules.game.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 游戏评论表单
 *
 * @author 有来技术团队
 */
@Schema(description = "游戏评论表单")
@Data
public class GameCommentForm {

    @Schema(description = "评论ID")
    private Long id;

    @Schema(description = "游戏ID")
    @NotNull(message = "游戏ID不能为空")
    private Long gameId;

    @Schema(description = "评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String content;

    @Schema(description = "评分(1-5分)")
    @DecimalMin(value = "1.0", message = "评分不能小于1")
    @DecimalMax(value = "5.0", message = "评分不能大于5")
    private BigDecimal rating;

    @Schema(description = "父评论ID")
    private Long parentId;

    @Schema(description = "回复用户ID")
    private Long replyUserId;
} 